package o;

import android.content.Context;
import android.text.TextUtils;
import com.huawei.appgallery.foundation.card.base.bean.KeywordInfo;
import com.huawei.appgallery.search.api.ISearchActivityProtocol;

public class dor implements etx {
    private b ˊ = new b();
    private d ˋ = new d();

    public static class b {
        public void ˎ(Context context, String str) {
            fjb ˎ = fho.ˏ().ˋ("Search").ˎ("Search");
            ISearchActivityProtocol iSearchActivityProtocol = (ISearchActivityProtocol) ˎ.ˊ();
            iSearchActivityProtocol.setTraceId(str);
            ˏ(iSearchActivityProtocol);
            fiu.ˊ().ˏ(context, ˎ);
        }

        private void ˋ(Context context, String str, boolean z, boolean z2, KeywordInfo keywordInfo) {
            if (keywordInfo == null || TextUtils.isEmpty(keywordInfo.ॱ())) {
                Logger.ˎ("ServiceStubImp", "The keywordInfo is null.");
                return;
            }
            fjb ˎ = fho.ˏ().ˋ("Search").ˎ("Search");
            ISearchActivityProtocol iSearchActivityProtocol = (ISearchActivityProtocol) ˎ.ˊ();
            iSearchActivityProtocol.setTraceId(str);
            iSearchActivityProtocol.setFromMain(z);
            iSearchActivityProtocol.setNeedSearch(z2);
            iSearchActivityProtocol.setIntentKeyword(keywordInfo.ॱ());
            iSearchActivityProtocol.setIntentDetailId(keywordInfo.ˋ());
            ˏ(iSearchActivityProtocol);
            fiu.ˊ().ˏ(context, ˎ);
        }

        public void ˋ(Context context, String str, String str2) {
            fjb ˎ = fho.ˏ().ˋ("Search").ˎ("Search");
            ISearchActivityProtocol iSearchActivityProtocol = (ISearchActivityProtocol) ˎ.ˊ();
            iSearchActivityProtocol.setFromMain(true);
            iSearchActivityProtocol.setTraceId(str);
            iSearchActivityProtocol.setIntentKeyword(str2);
            iSearchActivityProtocol.setNeedSearch(false);
            ˏ(iSearchActivityProtocol);
            fiu.ˊ().ˏ(context, ˎ);
        }

        private void ˏ(ISearchActivityProtocol iSearchActivityProtocol) {
            iSearchActivityProtocol.setDomainId(((bus) fho.ˏ().ˋ("Forum").ॱ(bus.class)).ˎ());
        }
    }

    public static class d {
        public void ˎ(Context context) {
            efg.ˋ().ˏ();
            ebz.ॱ().ˎ();
            enx.ॱ(context);
            eny.ˊ().ˏ();
            eny.ˊ().ॱ(true);
            ceo.ˎ().ˋ();
            eec.ˊ().ˏ();
            dcn.ˊ().ˎ();
            cfw.ˋ();
        }

        public void ˏ(Context context) {
            new eav().start();
            new ech().ˏ();
            efb.ॱ().ˎ();
            eny.ˊ().ॱ();
            new dcp().ॱ();
        }
    }

    public static void ˏ() {
        ety.ˋ("IServiceStub", dor.class);
        ety.ˋ("IReserveListSync", efh.class);
        ety.ˋ("IPackageIntercepterDialog", ewc.class);
        ety.ˋ("IShowVideoFailDialog", ewl.class);
        ety.ˋ("IshowPermissionDialog", ewf.class);
    }

    public void ˋ(String str) {
        ekm.ˊ().ॱ(str);
    }

    public void ˋ(Context context, String str) {
        this.ˊ.ˎ(context, str);
    }

    public void ॱ(Context context, String str, boolean z, boolean z2, KeywordInfo keywordInfo) {
        this.ˊ.ˋ(context, str, z, z2, keywordInfo);
    }

    public void ॱ(Context context, String str, String str2) {
        this.ˊ.ˋ(context, str, str2);
    }

    public void ॱ(Context context) {
        this.ˋ.ˎ(context);
    }

    public void ˏ(Context context) {
        this.ˋ.ˏ(context);
    }
}
